local extension = Package:new("tangz_ld_heg")
extension.extensionName = "new_heg"
extension.game_modes_whitelist = { "mul_heg_mode" }

local H = require "packages/new_heg/util"
local U = require "packages/utility/utility"
-- local D = require "packages/diy_utility/diy_utility"

Fk:loadTranslationTable{
  ["tangz_ld_heg"] = "鼎业积功",
}


local lijing = General(extension, "ld__n_lijing", "tangz", 4)
lijing.hidden = true
local talu = fk.CreateTriggerSkill{
  name = "ld__n_talu",
}
lijing:addSkill(talu)
Fk:loadTranslationTable{
  ["ld__n_lijing"] = "李靖",
  ["#ld__n_lijing"] = "",
  ["designer:ld__n_lijing"] = "教父",
  ["illustrator:ld__n_lijing"] = "",

  ["ld__n_talu"] = "踏虏",
  [":ld__n_talu"] = "当你使用黑色【杀】或黑色普通锦囊牌指定唯一目标时，你可以失去1点体力，令位于你与其最短路径上的所有角色成为此牌的额外目标。",

  ["~ld__n_lijing"] = "",
}

local sudingfang = General(extension, "ld__n_sudingfang", "tangz", 4)
sudingfang.hidden = true
local cuixi = fk.CreateTriggerSkill{
  name = "ld__n_cuixi",
}
local changshe = fk.CreateTriggerSkill{
  name = "ld__n_changshe",
}
sudingfang:addSkill(cuixi)
sudingfang:addSkill(changshe)
Fk:loadTranslationTable{
  ["ld__n_sudingfang"] = "苏定方",
  ["#ld__n_sudingfang"] = "",
  ["designer:ld__n_sudingfang"] = "祭祀",
  ["illustrator:ld__n_sudingfang"] = "",

  ["ld__n_cuixi"] = "摧袭",
  [":ld__n_cuixi"] = "出牌阶段限一次，你可以与你攻击范围内你计算距离最大的所有角色依次弃置一张牌，若这些牌牌名各不相同，你对其中一名角色造成1点伤害并结束此阶段。",
  ["ld__n_changshe"] = "长蛇",
  [":ld__n_changshe"] = "阵法技，与你处于同一队列的角色攻击范围+X（X为与你处于同一队列角色数） 。",

  ["~ld__n_sudingfang"] = "",
}

local libai = General(extension, "ld__n_libai", "tangz", 4)
libai.hidden = true
local jiuge = fk.CreateTriggerSkill{
  name = "ld__n_jiuge",
}
local jianxing = fk.CreateTriggerSkill{
  name = "ld__n_jianxing",
}
local shiyin = fk.CreateTriggerSkill{
  name = "ld__n_shiyin",
}
libai:addSkill(jiuge)
libai:addSkill(jianxing)
libai:addSkill(shiyin)
Fk:loadTranslationTable{
  ["ld__n_libai"] = "李白",
  ["#ld__n_libai"] = "",
  ["designer:ld__n_libai"] = "静谦",
  ["illustrator:ld__n_libai"] = "",

  ["ld__n_jiuge"] = "酒歌",
  [":ld__n_jiuge"] = "你可以明置所有手牌，然后视为使用一张【酒】。",
  ["ld__n_jianxing"] = "剑行",
  [":ld__n_jianxing"] = "主将技，你可以将一张明置牌当【杀】使用，然后若此牌造成伤害，你可以暗置任意张明置牌。",
  ["ld__n_shiyin"] = "诗吟",
  [":ld__n_shiyin"] = "副将技，此武将牌上单独的阴阳鱼个数-1；当你成为牌的目标后，若此牌牌名字数与你明置手牌数相等，你可以摸一张牌，然后你暗置一张牌。",

  ["~ld__n_libai"] = "",
}

local lilinfu = General(extension, "ld__n_lilinfu", "tangz", 3)
lilinfu.hidden = true
local nongzhang = fk.CreateTriggerSkill{
  name = "ld__n_nongzhang",
}
local mijian = fk.CreateTriggerSkill{
  name = "ld__n_mijian",
}
lilinfu:addSkill(nongzhang)
lilinfu:addSkill(mijian)
Fk:loadTranslationTable{
  ["ld__n_lilinfu"] = "李林甫",
  ["#ld__n_lilinfu"] = "",
  ["designer:ld__n_lilinfu"] = "教父",
  ["illustrator:ld__n_lilinfu"] = "",

  ["ld__n_nongzhang"] = "弄獐",
  [":ld__n_nongzhang"] = "锁定技，你的【无懈可击】/【闪】视为【闪】/【无懈可击】；其他角色使用的牌对你造成伤害时，若你以此法响应过此牌，你防止此伤害并移除此武将牌。",
  ["ld__n_mijian"] = "蜜剑",
  [":ld__n_mijian"] = "出牌阶段限一次，你可以令一名手牌数小于体力上限的角色将手牌摸至体力上限并展示所有手牌，若其中有黑色牌，你对其造成1点伤害。",


  ["~ld__n_lilinfu"] = "",
}

local weizheng = General(extension, "ld__n_weizheng", "tangz", 3)
weizheng.hidden = true
local zhihua = fk.CreateTriggerSkill{
  name = "ld__n_zhihua",
}
local lianjian = fk.CreateTriggerSkill{
  name = "ld__n_lianjian",
}
local zhengdian = fk.CreateTriggerSkill{
  name = "ld__n_zhengdian",
}
weizheng:addSkill(zhihua)
weizheng:addSkill(lianjian)
weizheng:addSkill(zhengdian)
Fk:loadTranslationTable{
  ["ld__n_weizheng"] = "魏徵",
  ["#ld__n_weizheng"] = "",
  ["designer:ld__n_weizheng"] = "教父",
  ["illustrator:ld__n_weizheng"] = "",

  ["ld__n_zhihua"] = "致化",
  [":ld__n_zhihua"] = "锁定技，其他角色牌指定你为目标时，若此牌花色与你明置牌中唯一最多的花色相同，取消之。",
  ["ld__n_lianjian"] = "连谏",
  [":ld__n_lianjian"] = "当你使用牌指定与你势力相同的角色为唯一目标后，你可以明置其一张手牌，若其所有明置的手牌花色均不相同，其摸一张牌。",
  ["ld__n_zhengdian"] = "政典",
  [":ld__n_zhengdian"] = "你明置的手牌进入弃牌堆时，你可以改为置于牌堆底；你可以使用牌堆底的普通锦囊牌。",

  ["~ld__n_weizheng"] = "",
}

local yuantiangang = General(extension, "ld__n_yuantiangang", "tangz", 3)
yuantiangang.hidden = true
local xiangshu = fk.CreateTriggerSkill{
  name = "ld__n_xiangshu",
  events = {fk.EventPhaseStart},
}
local mingjie = fk.CreateTriggerSkill{
  name = "ld__n_mingjie",
  events = {fk.EventPhaseStart},
}
yuantiangang:addSkill(xiangshu)
yuantiangang:addSkill(mingjie)
Fk:loadTranslationTable{
  ["ld__n_yuantiangang"] = "袁天罡",
  ["#ld__n_yuantiangang"] = "",
  ["designer:ld__n_yuantiangang"] = "尤提姆",
  ["illustrator:ld__n_yuantiangang"] = "",
  
  ["ld__n_xiangshu"] = "相术",
  [":ld__n_xiangshu"] = "当你于出牌阶段内首次使用牌指定唯一目标后，你可以令其展示所有手牌，若与你使用的此牌花色均不相同且其与你势力相同，你可以令其选择是否变更。",
  ["ld__n_mingjie"] = "命诫",
  [":ld__n_mingjie"] = "结束阶段，你可以将所有手牌分配给任意名其他角色，若如此做，直至你的下个回合开始，当你于每回合首次进入濒死状态时，你摸两张牌。",

  ["~ld__n_yuantiangang"] = ""
}

local zhangsunwuji = General(extension, "ld__n_zhangsunwuji", "tangz", 4)
zhangsunwuji.hidden = true
local xingbian = fk.CreateActiveSkill{
  name = "ld__n_xingbian",
}
local zhongwang = fk.CreateActiveSkill{
  name = "ld__n_zhongwang",
}
zhangsunwuji:addSkill(xingbian)
zhangsunwuji:addSkill(zhongwang)
Fk:loadTranslationTable{
  ["ld__n_zhangsunwuji"] = "长孙无忌",
  ["#ld__n_zhangsunwuji"] = "",
  ["designer:ld__n_zhangsunwuji"] = "小曹神&教父",
  ["illustrator:ld__n_zhangsunwuji"] = "",

  ["ld__n_xingbian"] = "兴变",
  [":ld__n_xingbian"] = "其他角色的出牌阶段开始时，你可以明置至多体力值数张手牌，然后其可以用手牌与你交换其中任意张牌并明置之。",
  ["ld__n_zhongwang"] = "众望",
  [":ld__n_zhongwang"] = "锁定技，若你的明置牌数大于与你势力相同的角色数，与你势力相同的角色使用明置牌可以额外指定一个目标。",

  ["~ld__n_zhangsunwuji"] = "",
}

local taipinggongzhu = General(extension, "ld__n_taipinggongzhu", "tangz", 3, 3, General.Female)
taipinggongzhu.hidden = true
local guichong = fk.CreateTriggerSkill{
  name = "ld__n_guichong",
}
local fuchao = fk.CreateTriggerSkill{
  name = "ld__n_fuchao",
}
taipinggongzhu:addSkill(guichong)
taipinggongzhu:addSkill(fuchao)
Fk:loadTranslationTable{
  ["ld__n_taipinggongzhu"] = "太平公主",
  ["#ld__n_taipinggongzhu"] = "",
  ["designer:ld__n_taipinggongzhu"] = "静谦",
  ["illustrator:ld__n_taipinggongzhu"] = "",

  ["ld__n_guichong"] = "贵宠 ",
  [":ld__n_guichong"] = "当你回复体力后，你可以明置一张手牌，然后将场上的一张装备牌移动至你的装备区。",
  ["ld__n_fuchao"] = "覆朝",
  [":ld__n_fuchao"] = "其他角色的结束阶段，你可以将一张装备牌置入其装备区，然后对其发起“军令”：若其不执行，你获得其一张手牌并明置之；若你的手牌均明置，你以此法发起的“军令”强制执行。",

  ["~ld__n_taipinggongzhu"] = "",
}

return extension
